package cn.sunflower.exam.mapper;

import cn.sunflower.exam.dto.ScoreDTO;
import cn.sunflower.exam.entity.Score;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScoreMapper {
    int delete(Integer id);

    int insert(Score score);

    int insertDynamic(Score score);

    int updateDynamic(Score score);

    int update(Score score);

    Score selectById(Integer id);

    List<Score> findPageWithResult(ScoreDTO scoreDTO);

    Integer findPageWithCount(ScoreDTO scoreDTO);

    Score findScoreByEmpIdAndType(String empId, String type);

    List<Score> findAllScoreByEmpIdAndType(String empId, String type);
}